// 导入axios模块
import axios from '@/utils/axios'

// 登录请求
export const login = data => {
  return axios({
    method: 'POST',
    url: '/app/v1_0/authorizations',
    data
  })
}

// 验证码请求
export const captcha = mobile => {
  return axios({
    method: 'GET',
    url: `/app/v1_0/sms/codes/${mobile}`
  })
}
